<template>
  <el-config-provider :locale="localLangMessage">
    <router-view />
  </el-config-provider>
</template>

<script>
import { useAppStore } from '@/stores/app'

export default {
  name: 'app',
  computed: {
    localLangMessage() {
      return this.appStore.lang.langMessages[this.appStore.lang.lang]
    }
  },
  setup() {
    const appStore = useAppStore()
    return { appStore }
  }
}
</script>
